﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Matriculas_Aluno_matricula" Codebehind="Aluno_matricula.aspx.cs" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head id="Head1" runat="server"> 
    <title></title> 
    <script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());

        } 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ObjectDataSource ID="ods_AlunoMatricula" runat="server"  
        SelectMethod="_obter_Matricula_Turma" TypeName="Banco.BD_Matricula" 
        onselecting="ods_AlunoMatricula_Selecting"> 
        <SelectParameters> 
            <asp:Parameter Name="TURMA_ID" Type="String" /> 
        </SelectParameters> 
    </asp:ObjectDataSource> 
    
    <asp:HiddenField ID="hid_TURMA_ID" runat="server" />
    <asp:HiddenField ID="hid_ALUNO_ID" runat="server" />
     
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        </telerik:RadScriptManager> 
 
        <telerik:RadAjaxLoadingPanel ID="ralpGrid" runat="server" Skin="Default"> 
          </telerik:RadAjaxLoadingPanel> 
 
                 <telerik:RadAjaxPanel ID="rapGrid" runat="server" Height="280px" 
                    Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpGrid" 
                    onajaxrequest="rapGrid_AjaxRequest"> 
 
        <telerik:RadGrid ID="rdg_AlunoEvento" runat="server" AutoGenerateColumns="False"  
                GridLines="None" Skin="Sunset" AllowSorting="True"  
                DataSourceID="ods_AlunoMatricula" AllowAutomaticDeletes="True"  
                AllowAutomaticInserts="True" AllowAutomaticUpdates="True"  
                AllowFilteringByColumn="True" AllowPaging="True" Height="280px" >  
                <ClientSettings> 
                    <Selecting AllowRowSelect="True" /> 
                    <ClientEvents OnRowDblClick="RowDblClick" /> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                </ClientSettings> 
    <MasterTableView datasourceid="ods_AlunoMatricula" commanditemdisplay="Top" EditMode="PopUp" 
                    ClientDataKeyNames="MATRICULA_ID" > 
    <RowIndicatorColumn> 
    <HeaderStyle Width="20px"></HeaderStyle> 
    </RowIndicatorColumn> 
 
    <ExpandCollapseColumn> 
    <HeaderStyle Width="20px"></HeaderStyle> 
    </ExpandCollapseColumn> 
        <CommandItemSettings AddNewRecordText="Adicionar Novo registro"  
            ExportToCsvText="Exportar para CSV" ExportToExcelText="Exportar para Excel"  
            ExportToPdfText="Exportar para PDF" ShowExportToExcelButton="True"  
            ShowExportToPdfButton="True" RefreshText="Atualizar" /> 
        <Columns>
            <telerik:GridBoundColumn DataField="MATRICULA_ID" 
                HeaderText="Matrícula" SortExpression="MATRICULA_ID"  Visible="true" FilterControlWidth="40px"
                UniqueName="ALUNO_EVENTO_ID">
                <HeaderStyle Width="80px" /> 
                <ItemStyle Font-Size="X-Small" Width="80px" /> 
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="Código" FilterControlWidth="40px"
                SortExpression="ALUNO_ID" UniqueName="ALUNO_ID">
                <HeaderStyle Width="80px" /> 
                <ItemStyle Font-Size="X-Small" Width="80px" /> 
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PES_NOME" HeaderText="Nome"  FilterControlWidth="180px"
                SortExpression="PES_NOME" UniqueName="PES_NOME">
                <HeaderStyle /> 
                <ItemStyle Font-Size="X-Small" /> 
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TURMA_ID" HeaderText="TURMA_ID"  Visible="false"
                SortExpression="TURMA_ID" UniqueName="TURMA_ID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TUR_DESCRICAO" HeaderText="TUR_DESCRICAO"  Visible="false"
                SortExpression="TUR_DESCRICAO" UniqueName="TUR_DESCRICAO">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="MAT_DTINCLUSAO" HeaderText="Data mat" FilterControlWidth="70px"
                SortExpression="MAT_DTINCLUSAO" UniqueName="MAT_DTINCLUSAO">
                <HeaderStyle  HorizontalAlign="Center"  Width="110px" /> 
                <ItemStyle  HorizontalAlign="Center" Font-Size="X-Small" Width="110px" /> 
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BOLSA_ID" HeaderText="BOLSA_ID" Visible="false"
                SortExpression="BOLSA_ID" UniqueName="BOLSA_ID">
                <HeaderStyle Width="80px" /> 
                <ItemStyle Font-Size="X-Small" Width="80px" /> 
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BOL_DESCRICAO" HeaderText="Bolsa"  AllowFiltering="false"
                SortExpression="BOL_DESCRICAO" UniqueName="BOL_DESCRICAO">
                <HeaderStyle Width="160px" /> 
                <ItemStyle Font-Size="X-Small" Width="160px" /> 
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="EVENTO_MODALIDADE_ID"  Visible="false"
                HeaderText="EVENTO_MODALIDADE_ID" SortExpression="EVENTO_MODALIDADE_ID" 
                UniqueName="EVENTO_MODALIDADE_ID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BOL_MODALIDADE" HeaderText="BOL_MODALIDADE"  Visible="false"
                SortExpression="BOL_MODALIDADE" UniqueName="BOL_MODALIDADE">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PESSOA_ID" HeaderText="PESSOA_ID"  Visible="false"
                SortExpression="PESSOA_ID" UniqueName="PESSOA_ID">
            </telerik:GridBoundColumn>            
            
        </Columns>
 
    <EditFormSettings> 
    <EditColumn UniqueName="EditCommandColumn1" ButtonType="ImageButton"></EditColumn> 
        <PopUpSettings Modal="True" /> 
    </EditFormSettings> 
    </MasterTableView> 
            </telerik:RadGrid> 
        </telerik:RadAjaxPanel>
         
     
    </div> 
    </form> 
</body> 
</html>
